package com.bw.house.adapter


import com.bumptech.glide.Glide
import com.bw.house.R
import com.bw.house.view.UserFragment
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class UserAdapter :BaseQuickAdapter<UserFragment.User,BaseViewHolder>(R.layout.user_item) {

    override fun convert(holder: BaseViewHolder, item: UserFragment.User) {
        Glide.with(context).load(item.icon).into(holder.getView(R.id.icon))
        holder.setText(R.id.title,item.title)
        holder.setText(R.id.address,item.address)
    }

}